<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Style x:Key="{x:Type Button}"
           TargetType="Button">
        <Style.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="true">
                <Setter Property="Cursor"
                        Value="Hand" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <!-- SettingsButton -->
    <ControlTemplate x:Key="SettingsButton">
        <Button>
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="SettingsBorder"
                            BorderBrush="{StaticResource BorderBrush}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                        <Image x:Name="SettingsImage"
                               Margin="2"
                               Height="36"
                               Width="36"
                               Source="/NetConfigurator;component/Images/settings.png">
                        </Image>
                    </Border>
                </ControlTemplate>
            </Button.Template>
        </Button>
    </ControlTemplate>

    <!-- ApplicationsButton -->
    <ControlTemplate x:Key="ApplicationsButton">
        <Button Command="{Binding Path=ShowSettings}"
                CommandParameter="applications.xml">
            <Button.ToolTip>
                <ToolTip Content="{Binding ApplicationFilesToolTip, UpdateSourceTrigger=PropertyChanged}"
                         Template="{DynamicResource InformationToolTip}" />
            </Button.ToolTip>
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="ApplicationsBorder"
                            BorderBrush="{StaticResource BorderBrush}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                        <Image x:Name="ApplicationsImage"
                               Margin="2"
                               Height="36"
                               Width="36"
                               Source="/NetConfigurator;component/Images/applications.png">
                        </Image>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
                                 SourceName="ApplicationsImage"
                                 Value="True">
                            <Setter Property="BorderThickness"
                                    Value="1"
                                    TargetName="ApplicationsBorder" />
                        </Trigger>
                        <Trigger Property="IsMouseOver"
                                 SourceName="ApplicationsImage"
                                 Value="False">
                            <Setter Property="BorderThickness"
                                    Value="0"
                                    TargetName="ApplicationsBorder" />
                        </Trigger>
                        <Trigger Property="IsPressed"
                                 Value="True">
                            <Setter TargetName="ApplicationsBorder"
                                    Property="BorderBrush"
                                    Value="{StaticResource ActiveBorderBrush}" />
                            <Setter Property="BorderThickness"
                                    Value="1"
                                    TargetName="ApplicationsBorder" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>
    </ControlTemplate>

    <!-- ConfigurationsButton -->
    <ControlTemplate x:Key="ConfigurationsButton">
        <Button Command="{Binding Path=ShowSettings}"
                CommandParameter="configurations.xml">
            <Button.ToolTip>
                <ToolTip Content="{Binding ConfigurationFilesToolTip, UpdateSourceTrigger=PropertyChanged}"
                         Template="{DynamicResource InformationToolTip}" />
            </Button.ToolTip>
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="ConfigurationsBorder"
                            BorderBrush="{StaticResource BorderBrush}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                        <Image x:Name="ConfigurationsImage"
                               Margin="2"
                               Height="36"
                               Width="36"
                               Source="/NetConfigurator;component/Images/configurations.png">
                        </Image>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
                                 SourceName="ConfigurationsImage"
                                 Value="True">
                            <Setter Property="BorderThickness"
                                    Value="1"
                                    TargetName="ConfigurationsBorder" />
                        </Trigger>
                        <Trigger Property="IsMouseOver"
                                 SourceName="ConfigurationsImage"
                                 Value="False">
                            <Setter Property="BorderThickness"
                                    Value="0"
                                    TargetName="ConfigurationsBorder" />
                        </Trigger>
                        <Trigger Property="IsPressed"
                                 Value="True">
                            <Setter TargetName="ConfigurationsBorder"
                                    Property="BorderBrush"
                                    Value="{StaticResource ActiveBorderBrush}" />
                            <Setter Property="BorderThickness"
                                    Value="1"
                                    TargetName="ConfigurationsBorder" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>
    </ControlTemplate>

    <!-- ValidateUrlButton template -->
    <ControlTemplate x:Key="ValidateUrlButton"
                     TargetType="Button">
        <DockPanel Width="50"
                   Height="50">
            <Image x:Name="ConfigurationState"
                   Margin="1"
                   Height="48"
                   Width="48"
                   Source="/NetConfigurator;component/Images/validateUrlLeave.png" />
        </DockPanel>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/validateUrlEnter.png"
                        TargetName="ConfigurationState" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="False">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/validateUrlLeave.png"
                        TargetName="ConfigurationState" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- ExecuteAutoCompositionButton template -->
    <ControlTemplate x:Key="ExecuteAutoCompositionButton"
                     TargetType="Button">
        <DockPanel Width="50"
                   Height="50">
            <Image x:Name="ConfigurationState"
                   Margin="1"
                   Height="48"
                   Width="48"
                   Source="/NetConfigurator;component/Images/autoCompositionLeave.png" />
        </DockPanel>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/autoCompositionEnter.png"
                        TargetName="ConfigurationState" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="False">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/autoCompositionLeave.png"
                        TargetName="ConfigurationState" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- UpdateAlertButton template -->
    <ControlTemplate x:Key="UpdateAlertButton"
                     TargetType="Button">
        <DockPanel Width="30"
                   Height="30">
            <Image x:Name="UpdateAlertState"
                   Margin="1"
                   Height="28"
                   Width="28"
                   Source="/NetConfigurator;component/Images/updateAlertLeave.png" />
        </DockPanel>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/updateAlertEnter.png"
                        TargetName="UpdateAlertState" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="False">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/updateAlertLeave.png"
                        TargetName="UpdateAlertState" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- ItaLangButton template -->
    <ControlTemplate x:Key="ItaLangImage"
                     TargetType="Image">
        <DockPanel Height="20"                  
                   Width="22">
            <Image Margin="1"
                   Height="16"
                   Width="16"
                   Source="/NetConfigurator;component/Images/ita.png" />
        </DockPanel>
    </ControlTemplate>
    
    <!-- ItaLangButton template -->
    <ControlTemplate x:Key="ItaLangButton"
                     TargetType="Button">
        <DockPanel Height="20"                  
                   Width="22">
            <Image Margin="1"
                   Height="16"
                   Width="16"
                   Source="/NetConfigurator;component/Images/ita.png" />
        </DockPanel>
    </ControlTemplate>

    <!-- EngLangButton template -->
    <ControlTemplate x:Key="EngLangButton"
                     TargetType="Button">
        <DockPanel Height="20"
                   Width="22">
            <Image Margin="1"
                   Height="16"
                   Width="16"
                   Source="/NetConfigurator;component/Images/eng.png" />
        </DockPanel>
    </ControlTemplate>

    <!-- GerLangButton template -->
    <ControlTemplate x:Key="GerLangButton"
                     TargetType="Button">
        <DockPanel Height="20"
                   Width="22">
            <Image Margin="1"
                   Height="16"
                   Width="16"
                   Source="/NetConfigurator;component/Images/ger.png" />
        </DockPanel>
    </ControlTemplate>

    <!-- BrowseButton template -->
    <ControlTemplate x:Key="BrowseButton"
                     TargetType="Button">
        <DockPanel Width="50"
                   Height="50">
            <Image x:Name="BrowseState"
                   Margin="1"
                   Height="48"
                   Width="48"
                   Source="/NetConfigurator;component/Images/browseLeave.png" />
        </DockPanel>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/browseEnter.png"
                        TargetName="BrowseState" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="False">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/browseLeave.png"
                        TargetName="BrowseState" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- ExecuteButton template -->
    <ControlTemplate x:Key="ExecuteButton"
                     TargetType="Button">
        <DockPanel Width="50"
                   Height="50">
            <Image x:Name="ExecuteState"
                   Margin="1"
                   Height="48"
                   Width="48"
                   Source="/NetConfigurator;component/Images/executeLeave.png" />
        </DockPanel>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/executeEnter.png"
                        TargetName="ExecuteState" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="False">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/executeLeave.png"
                        TargetName="ExecuteState" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- GoToHomeButton template -->
    <ControlTemplate x:Key="GoToHomeButton"
                     TargetType="Button">
        <DockPanel Width="50"
                   Height="50">
            <Image x:Name="ConfigurationState"
                   Margin="1"
                   Height="48"
                   Width="48"
                   Source="/NetConfigurator;component/Images/homeLeave.png" />
        </DockPanel>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/homeEnter.png"
                        TargetName="ConfigurationState" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="False">
                <Setter Property="Source"
                        Value="/NetConfigurator;component/Images/homeLeave.png"
                        TargetName="ConfigurationState" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

</ResourceDictionary>